package com.makao.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {

   @Value("${words}") String words;
   @Value("${server.port}") String port;//测试多个服务在不同端口启动时，哪个服务被调用

    @RequestMapping("/")
    public  String getWord() {
    	System.out.println("Port: "+port);
        return this.words;
    }
}